<ul class="maintabmenu multipletabmenu">
    <li class="current">
        <a href="">Công trình</a>
    </li>    
</ul><!--maintabmenu-->

<div class="content">
    <div class="contenttitle radiusbottom0">
        <h2 class="table"><span>Công trình</span></h2>
    </div>
    <div class="tableoptions">
        <button title="table2" class="deletebutton radius3">Delete Selected</button> &nbsp;        
    </div>
    <table cellspacing="0" cellpadding="0" border="0" class="stdtable stdtablecb" id="table2">
        <colgroup>
            <col class="con0">
            <col class="con1">
            <col class="con0">
            <col class="con1">            
        </colgroup>
        <thead>
            <tr>
                <th class="head0"><span class="checkbox"><input type="checkbox" class="checkall"></span></th>
                <th class="head1">Tên</th>
                <th class="head0">Mô tả</th>                
                <th class="head1">&nbsp;</th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <th class="head0"><span class="checkbox"><input type="checkbox" class="checkall"></span></th>
                <th class="head1">Tên</th>
                <th class="head0">Mô tả</th>                
                <th class="head1">&nbsp;</th>
            </tr>
        </tfoot>
        <tbody>
            <?php foreach ($buildings as $building) { ?>
                <tr>
                    <td class="center">
                        <span class="checkbox">
                            <input type="checkbox" value="<?php echo $building->building_id; ?>" data-link="<?php echo base_url() . 'admin/buildings/delete/' . $building->building_id; ?>">
                        </span>
                    </td>
                    <td><?php echo $building->building_name; ?></td>
                    <td><?php echo $building->building_info; ?></td>                
                    <td class="center">
                        <a class="edit" href="<?php echo base_url() . 'admin/buildings/edit/' . $building->building_id; ?>">Edit</a> &nbsp; 
                        <a class="delete" href="<?php echo base_url() . 'admin/buildings/delete/' . $building->building_id; ?>">Delete</a>
                    </td>
                </tr>            
            <?php } ?>
        </tbody>
    </table>
    <?php echo $list_link; ?>
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>back-end/js/custom/general.js"></script>
<script src="<?php echo base_url(); ?>back-end/js/plugins/jquery.dataTables.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>back-end/js/custom/tables.js"></script>